﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;

using Business = VietStar.Library.Business;
using Entity = VietStar.Library.Entity;
public partial class controls_admin_listuser : System.Web.UI.UserControl
{
    public int stt = 1;
    public DataTable dtThanhVien;

    protected void Page_Load(object sender, EventArgs e)
    {
        Business.ThanhVien clsB_Thanhvien = new Business.ThanhVien();
        Entity.ThanhVien clsE_ThanhVien = new VietStar.Library.Entity.ThanhVien();
        dtThanhVien = clsB_Thanhvien.Select(clsE_ThanhVien);
        cpDanhSachThanhVien.MaxPages = 10000;
        cpDanhSachThanhVien.PageSize = 3;
        cpDanhSachThanhVien.DataSource = dtThanhVien.DefaultView;
        cpDanhSachThanhVien.BindToControl = rptDanhSachThanhVien;
        rptDanhSachThanhVien.DataSource = cpDanhSachThanhVien.DataSourcePaged;
        rptDanhSachThanhVien.DataBind();
    }
}
